/*
 * @Author: linzaifei 1609781601@qq.com
 * @Date: 2025-05-12 08:38:02
 * @LastEditors: linzaifei 1609781601@qq.com
 * @LastEditTime: 2025-05-14 11:19:18
 * @FilePath: /amap-web-vr/src/api/login.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// ["phone": String(phone),"password":String(password)];

import request from "./request";
  
export const login=(data:{})=> {
  return request.post(`/pc/v1/account/login`,
    data
  );
}

  // export const useinfo=()=> {
  //   return request1.get(`/user/info`);
  // }

  ///生成二维码
export const getQrCode=()=> {
  return request.get(`/pc/v1/account/generateQrCode`);
}
  ///轮询确认登陆状态
export const checkScan=(token:string)=> {
    return request.get(`/pc/v1/account/checkScan`,{
      params:{
        token:token
      }
  });
}